package com.example.demo.listener;

import com.example.demo.event.DemoTestEvent;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
public class DemoTestListener implements ApplicationListener<DemoTestEvent>{

  @Override
  public void onApplicationEvent(DemoTestEvent event) {
    log.info(">>>>>>> DemoTestListener name:{}", event.getName());

  }
    
}